import React, { useState, useEffect } from 'react'
import { Modal, Alert, Tree, message } from 'antd';
import { DownOutlined } from '@ant-design/icons';
import styles from './index.module.css'
import { rashMenulist } from '../../../untils/auth'
export default function Resetmenu({ rashlist, menst, resetMenu, changetyp }) {
    //父组件传递参数控制子组件对话框弹出
    let [reset, setRest] = useState(0)
    setTimeout(() => {
        setRest(resetMenu)
    })
    useEffect(() => {
        if (reset === 1) {
            showModal()
        }
    }, [reset])
    //字段添加key值
    const addKey = (arr) => arr.map(item => ({
        ...item,
        key: item.id,
        children: item.children ? addKey(item.children) : [] // 这里要判断原数据有没有子级如果没有判断会报错
    }))
    const result = addKey(menst)

    const [confirmLoading, setConfirmLoading] = useState(false);
    const [open, setOpen] = useState(false);
    const showModal = () => {
        setOpen(true);
    };
    // console.log('menst',menst);

    let changMenuList = (val) => val.map(item => {
        return ({
            icon: item.icon,
            label: item.title,
            meta: item.meta,
            name: item.name,
            path: item.path,
            title: item.title,
            children: item.children.map(item1 => ({
                icon: item1.icon,
                label: item1.title,
                meta: item1.meta,
                name: item1.name,
                path: item1.path,
                title: item1.title,
            }))
        })
    })
    let list = changMenuList(menst)
    list = [
        {
            "id": "1628748036199940097",
            "pid": "0",
            "name": "product",
            "title": "商品管理",
            "type": 1,
            "permissionValue": null,
            "path": "/product",
            "component": null,
            "icon": "el-icon-s-shop",
            "status": 1,
            "level": 0,
            "children": [
                {
                    "id": "1628748036250271745",
                    "pid": "1628748036199940097",
                    "name": "productList",
                    "title": "商品列表",
                    "type": 1,
                    "permissionValue": null,
                    "path": "list",
                    "component": "@/views/product/index",
                    "icon": "el-icon-shopping-bag-2",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748036300603394",
                            "pid": "1628748036250271745",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "productList.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748036334157825",
                            "pid": "1628748036250271745",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "productList.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748036384489473",
                            "pid": "1628748036250271745",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "productList.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748036426432513",
                            "pid": "1628748036250271745",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "productList.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        }
                    ],
                    "isSelect": null,
                    "sort": 50,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"商品列表\",\"icon\":\"el-icon-shopping-bag-2\",\"componentUrl\":\"@/views/product/index\"}",
                    "createTime": "2023-02-23 21:26:07",
                    "modifyTime": "2023-02-23 21:26:07"
                },
                {
                    "id": "1628748036468375554",
                    "pid": "1628748036199940097",
                    "name": "productCategory",
                    "title": "商品分类",
                    "type": 1,
                    "permissionValue": null,
                    "path": "category",
                    "component": "@/views/product/category/index",
                    "icon": "el-icon-menu",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748036510318594",
                            "pid": "1628748036468375554",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "productCategory.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748036560650241",
                            "pid": "1628748036468375554",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "productCategory.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748036594204674",
                            "pid": "1628748036468375554",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "productCategory.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748036648730626",
                            "pid": "1628748036468375554",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "productCategory.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        }
                    ],
                    "isSelect": null,
                    "sort": 49,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"商品分类\",\"icon\":\"el-icon-menu\",\"componentUrl\":\"@/views/product/category/index\"}",
                    "createTime": "2023-02-23 21:26:07",
                    "modifyTime": "2023-02-23 21:26:07"
                },
                {
                    "id": "1628748036690673666",
                    "pid": "1628748036199940097",
                    "name": "productBrand",
                    "title": "品牌管理",
                    "type": 1,
                    "permissionValue": null,
                    "path": "brand",
                    "component": "@/views/product/brand/index",
                    "icon": "el-icon-present",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748036736811009",
                            "pid": "1628748036690673666",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "productBrand.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748036799725570",
                            "pid": "1628748036690673666",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "productBrand.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748036841668610",
                            "pid": "1628748036690673666",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "productBrand.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748036892000257",
                            "pid": "1628748036690673666",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "productBrand.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        }
                    ],
                    "isSelect": null,
                    "sort": 48,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"品牌管理\",\"icon\":\"el-icon-present\",\"componentUrl\":\"@/views/product/brand/index\"}",
                    "createTime": "2023-02-23 21:26:07",
                    "modifyTime": "2023-02-23 21:26:07"
                },
                {
                    "id": "1628748036946526210",
                    "pid": "1628748036199940097",
                    "name": "productDetail",
                    "title": "商品编辑",
                    "type": 1,
                    "permissionValue": null,
                    "path": "detail/:id",
                    "component": "@/views/product/detail/index",
                    "icon": "table",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748036988469250",
                            "pid": "1628748036946526210",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "productDetail.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748037030412289",
                            "pid": "1628748036946526210",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "productDetail.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748037080743938",
                            "pid": "1628748036946526210",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "productDetail.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748037118492673",
                            "pid": "1628748036946526210",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "productDetail.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        }
                    ],
                    "isSelect": null,
                    "sort": 47,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": true,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"商品编辑\",\"icon\":\"table\",\"activeMenu\":\"/product/list\",\"componentUrl\":\"@/views/product/detail/index\"}",
                    "createTime": "2023-02-23 21:26:07",
                    "modifyTime": "2023-02-23 21:26:07"
                },
                {
                    "id": "1628748037160435714",
                    "pid": "1628748036199940097",
                    "name": "addProductDetail",
                    "title": "新增商品",
                    "type": 1,
                    "permissionValue": null,
                    "path": "addDetail",
                    "component": "@/views/product/detail/index",
                    "icon": "table",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748037202378754",
                            "pid": "1628748037160435714",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "addProductDetail.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748037235933186",
                            "pid": "1628748037160435714",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "addProductDetail.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748037277876225",
                            "pid": "1628748037160435714",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "addProductDetail.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748037307236354",
                            "pid": "1628748037160435714",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "addProductDetail.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        }
                    ],
                    "isSelect": null,
                    "sort": 46,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": true,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"新增商品\",\"icon\":\"table\",\"activeMenu\":\"/product/list\",\"componentUrl\":\"@/views/product/detail/index\"}",
                    "createTime": "2023-02-23 21:26:07",
                    "modifyTime": "2023-02-23 21:26:07"
                }
            ],
            "isSelect": null,
            "sort": 50,
            "isDeleted": false,
            "redirect": "/product/list",
            "hidden": false,
            "alwaysShow": true,
            "meta": "{\"title\":\"商品管理\",\"icon\":\"el-icon-s-shop\"}",
            "createTime": "2023-02-23 21:26:07",
            "modifyTime": "2023-02-23 21:26:07"
        },
        {
            "id": "1628748037340790785",
            "pid": "0",
            "name": "order",
            "title": "订单管理",
            "type": 1,
            "permissionValue": null,
            "path": "/order",
            "component": null,
            "icon": "el-icon-tickets",
            "status": 1,
            "level": 0,
            "children": [
                {
                    "id": "1628748037382733825",
                    "pid": "1628748037340790785",
                    "name": "orderList",
                    "title": "订单列表",
                    "type": 1,
                    "permissionValue": null,
                    "path": "list",
                    "component": "@/views/order/index",
                    "icon": "el-icon-document-checked",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748037420482562",
                            "pid": "1628748037382733825",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "orderList.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748037470814209",
                            "pid": "1628748037382733825",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "orderList.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748037508562946",
                            "pid": "1628748037382733825",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "orderList.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        },
                        {
                            "id": "1628748037542117377",
                            "pid": "1628748037382733825",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "orderList.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:07",
                            "modifyTime": "2023-02-23 21:26:07"
                        }
                    ],
                    "isSelect": null,
                    "sort": 50,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"订单列表\",\"icon\":\"el-icon-document-checked\",\"componentUrl\":\"@/views/order/index\"}",
                    "createTime": "2023-02-23 21:26:07",
                    "modifyTime": "2023-02-23 21:26:07"
                },
                {
                    "id": "1628748037592449026",
                    "pid": "1628748037340790785",
                    "name": "orderDetail",
                    "title": "订单详情",
                    "type": 1,
                    "permissionValue": null,
                    "path": "detail/:id",
                    "component": "@/views/order/detail/index",
                    "icon": "table",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748037634392066",
                            "pid": "1628748037592449026",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "orderDetail.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748037672140802",
                            "pid": "1628748037592449026",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "orderDetail.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748037714083842",
                            "pid": "1628748037592449026",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "orderDetail.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748037747638274",
                            "pid": "1628748037592449026",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "orderDetail.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 49,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": true,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"订单详情\",\"icon\":\"table\",\"activeMenu\":\"/order/list\",\"componentUrl\":\"@/views/order/detail/index\"}",
                    "createTime": "2023-02-23 21:26:07",
                    "modifyTime": "2023-02-23 21:26:07"
                },
                {
                    "id": "1628748037781192706",
                    "pid": "1628748037340790785",
                    "name": "orderBack",
                    "title": "退单列表",
                    "type": 1,
                    "permissionValue": null,
                    "path": "back",
                    "component": "@/views/order/orderBack/index",
                    "icon": "el-icon-document-delete",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748037818941442",
                            "pid": "1628748037781192706",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "orderBack.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748037860884482",
                            "pid": "1628748037781192706",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "orderBack.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748037911216129",
                            "pid": "1628748037781192706",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "orderBack.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748037953159169",
                            "pid": "1628748037781192706",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "orderBack.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 48,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"退单列表\",\"icon\":\"el-icon-document-delete\",\"componentUrl\":\"@/views/order/orderBack/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                },
                {
                    "id": "1628748037995102210",
                    "pid": "1628748037340790785",
                    "name": "orderBackDetail",
                    "title": "退单详情",
                    "type": 1,
                    "permissionValue": null,
                    "path": "backDetail/:id",
                    "component": "@/views/order/orderBack/detail/index",
                    "icon": "table",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748038032850945",
                            "pid": "1628748037995102210",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "orderBackDetail.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038074793985",
                            "pid": "1628748037995102210",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "orderBackDetail.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038108348418",
                            "pid": "1628748037995102210",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "orderBackDetail.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038141902850",
                            "pid": "1628748037995102210",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "orderBackDetail.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 47,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": true,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"退单详情\",\"icon\":\"table\",\"activeMenu\":\"/order/back\",\"componentUrl\":\"@/views/order/orderBack/detail/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                },
                {
                    "id": "1628748038179651585",
                    "pid": "1628748037340790785",
                    "name": "orderAddress",
                    "title": "地址管理",
                    "type": 1,
                    "permissionValue": null,
                    "path": "address",
                    "component": "@/views/order/address/index",
                    "icon": "el-icon-school",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748038221594626",
                            "pid": "1628748038179651585",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "orderAddress.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038263537665",
                            "pid": "1628748038179651585",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "orderAddress.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038322257921",
                            "pid": "1628748038179651585",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "orderAddress.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038376783874",
                            "pid": "1628748038179651585",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "orderAddress.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 46,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"地址管理\",\"icon\":\"el-icon-school\",\"componentUrl\":\"@/views/order/address/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                }
            ],
            "isSelect": null,
            "sort": 49,
            "isDeleted": false,
            "redirect": "/order/list",
            "hidden": false,
            "alwaysShow": true,
            "meta": "{\"title\":\"订单管理\",\"icon\":\"el-icon-tickets\"}",
            "createTime": "2023-02-23 21:26:07",
            "modifyTime": "2023-02-23 21:26:07"
        },
        {
            "id": "1628748038427115522",
            "pid": "0",
            "name": "user",
            "title": "注册用户管理",
            "type": 1,
            "permissionValue": null,
            "path": "/user",
            "component": null,
            "icon": "el-icon-s-custom",
            "status": 1,
            "level": 0,
            "children": [
                {
                    "id": "1628748038469058562",
                    "pid": "1628748038427115522",
                    "name": "userList",
                    "title": "用户列表",
                    "type": 1,
                    "permissionValue": null,
                    "path": "list",
                    "component": "@/views/user/index",
                    "icon": "el-icon-user",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748038511001601",
                            "pid": "1628748038469058562",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "userList.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038548750337",
                            "pid": "1628748038469058562",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "userList.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038582304770",
                            "pid": "1628748038469058562",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "userList.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038624247810",
                            "pid": "1628748038469058562",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "userList.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 50,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"用户列表\",\"icon\":\"el-icon-user\",\"componentUrl\":\"@/views/user/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                }
            ],
            "isSelect": null,
            "sort": 48,
            "isDeleted": false,
            "redirect": "/user/list",
            "hidden": false,
            "alwaysShow": true,
            "meta": "{\"title\":\"注册用户管理\",\"icon\":\"el-icon-s-custom\"}",
            "createTime": "2023-02-23 21:26:08",
            "modifyTime": "2023-02-23 21:26:08"
        },
        {
            "id": "1628748038657802241",
            "pid": "0",
            "name": "market",
            "title": "营销管理",
            "type": 1,
            "permissionValue": null,
            "path": "/market",
            "component": null,
            "icon": "el-icon-goods",
            "status": 1,
            "level": 0,
            "children": [
                {
                    "id": "1628748038691356674",
                    "pid": "1628748038657802241",
                    "name": "marketList",
                    "title": "限时活动",
                    "type": 1,
                    "permissionValue": null,
                    "path": "list",
                    "component": "@/views/market/index",
                    "icon": "el-icon-files",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748038720716801",
                            "pid": "1628748038691356674",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "marketList.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038771048450",
                            "pid": "1628748038691356674",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "marketList.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038821380098",
                            "pid": "1628748038691356674",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "marketList.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038859128834",
                            "pid": "1628748038691356674",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "marketList.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 50,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"限时活动\",\"icon\":\"el-icon-files\",\"componentUrl\":\"@/views/market/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                },
                {
                    "id": "1628748038896877570",
                    "pid": "1628748038657802241",
                    "name": "marketAdvertisement",
                    "title": "广告列表",
                    "type": 1,
                    "permissionValue": null,
                    "path": "advertisement",
                    "component": "@/views/market/advertisement/index",
                    "icon": "el-icon-document-copy",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748038947209218",
                            "pid": "1628748038896877570",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "marketAdvertisement.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748038989152257",
                            "pid": "1628748038896877570",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "marketAdvertisement.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039022706690",
                            "pid": "1628748038896877570",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "marketAdvertisement.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039068844034",
                            "pid": "1628748038896877570",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "marketAdvertisement.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 49,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"广告列表\",\"icon\":\"el-icon-document-copy\",\"componentUrl\":\"@/views/market/advertisement/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                }
            ],
            "isSelect": null,
            "sort": 47,
            "isDeleted": false,
            "redirect": "/market/list",
            "hidden": false,
            "alwaysShow": true,
            "meta": "{\"title\":\"营销管理\",\"icon\":\"el-icon-goods\"}",
            "createTime": "2023-02-23 21:26:08",
            "modifyTime": "2023-02-23 21:26:08"
        },
        {
            "id": "1628748039119175682",
            "pid": "0",
            "name": "content",
            "title": "内容管理",
            "type": 1,
            "permissionValue": null,
            "path": "/content",
            "component": null,
            "icon": "el-icon-folder",
            "status": 1,
            "level": 0,
            "children": [
                {
                    "id": "1628748039161118722",
                    "pid": "1628748039119175682",
                    "name": "articleList",
                    "title": "文章列表",
                    "type": 1,
                    "permissionValue": null,
                    "path": "articleList",
                    "component": "@/views/content/article/index",
                    "icon": "el-icon-tickets",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748039211450370",
                            "pid": "1628748039161118722",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "articleList.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039257587714",
                            "pid": "1628748039161118722",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "articleList.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039316307969",
                            "pid": "1628748039161118722",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "articleList.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039366639618",
                            "pid": "1628748039161118722",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "articleList.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 50,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"文章列表\",\"icon\":\"el-icon-tickets\",\"componentUrl\":\"@/views/content/article/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                },
                {
                    "id": "1628748039421165569",
                    "pid": "1628748039119175682",
                    "name": "addArticle",
                    "title": "新增文章",
                    "type": 1,
                    "permissionValue": null,
                    "path": "addArticle",
                    "component": "@/views/content/article/detail/index",
                    "icon": "el-icon-tickets",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748039471497218",
                            "pid": "1628748039421165569",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "addArticle.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039538606081",
                            "pid": "1628748039421165569",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "addArticle.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039563771905",
                            "pid": "1628748039421165569",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "addArticle.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039609909249",
                            "pid": "1628748039421165569",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "addArticle.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 49,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": true,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"新增文章\",\"icon\":\"el-icon-tickets\",\"activeMenu\":\"/content/articleList\",\"componentUrl\":\"@/views/content/article/detail/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                },
                {
                    "id": "1628748039660240897",
                    "pid": "1628748039119175682",
                    "name": "editArticle",
                    "title": "编辑文章",
                    "type": 1,
                    "permissionValue": null,
                    "path": "editArticle/:id",
                    "component": "@/views/content/article/detail/index",
                    "icon": "el-icon-tickets",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748039693795330",
                            "pid": "1628748039660240897",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "editArticle.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039727349761",
                            "pid": "1628748039660240897",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "editArticle.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039832207361",
                            "pid": "1628748039660240897",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "editArticle.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039878344706",
                            "pid": "1628748039660240897",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "editArticle.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 48,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": true,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"编辑文章\",\"icon\":\"el-icon-tickets\",\"activeMenu\":\"/content/articleList\",\"componentUrl\":\"@/views/content/article/detail/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                },
                {
                    "id": "1628748039911899137",
                    "pid": "1628748039119175682",
                    "name": "materialList",
                    "title": "素材列表",
                    "type": 1,
                    "permissionValue": null,
                    "path": "materialList",
                    "component": "@/views/content/material/index",
                    "icon": "el-icon-picture-outline",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748039958036481",
                            "pid": "1628748039911899137",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "materialList.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748039999979521",
                            "pid": "1628748039911899137",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "materialList.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040033533954",
                            "pid": "1628748039911899137",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "materialList.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040062894082",
                            "pid": "1628748039911899137",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "materialList.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 47,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"素材列表\",\"icon\":\"el-icon-picture-outline\",\"componentUrl\":\"@/views/content/material/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                }
            ],
            "isSelect": null,
            "sort": 46,
            "isDeleted": false,
            "redirect": "/content/articleList",
            "hidden": false,
            "alwaysShow": true,
            "meta": "{\"title\":\"内容管理\",\"icon\":\"el-icon-folder\"}",
            "createTime": "2023-02-23 21:26:08",
            "modifyTime": "2023-02-23 21:26:08"
        },
        {
            "id": "1628748040096448513",
            "pid": "0",
            "name": "person",
            "title": "个人中心",
            "type": 1,
            "permissionValue": null,
            "path": "/person",
            "component": null,
            "icon": "el-icon-user-solid",
            "status": 1,
            "level": 0,
            "children": [
                {
                    "id": "1628748040134197250",
                    "pid": "1628748040096448513",
                    "name": "personIndex",
                    "title": "个人主页",
                    "type": 1,
                    "permissionValue": null,
                    "path": "index",
                    "component": "@/views/person/index",
                    "icon": "el-icon-user",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748040176140290",
                            "pid": "1628748040134197250",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "personIndex.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040218083329",
                            "pid": "1628748040134197250",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "personIndex.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040251637761",
                            "pid": "1628748040134197250",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "personIndex.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040289386497",
                            "pid": "1628748040134197250",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "personIndex.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 50,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"个人主页\",\"icon\":\"el-icon-user\",\"componentUrl\":\"@/views/person/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                },
                {
                    "id": "1628748040331329537",
                    "pid": "1628748040096448513",
                    "name": "personSetting",
                    "title": "个人设置",
                    "type": 1,
                    "permissionValue": null,
                    "path": "setting",
                    "component": "@/views/person/Setting/index",
                    "icon": "el-icon-setting",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748040381661186",
                            "pid": "1628748040331329537",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "personSetting.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040423604226",
                            "pid": "1628748040331329537",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "personSetting.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040452964353",
                            "pid": "1628748040331329537",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "personSetting.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040520073217",
                            "pid": "1628748040331329537",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "personSetting.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 49,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"个人设置\",\"icon\":\"el-icon-setting\",\"componentUrl\":\"@/views/person/Setting/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                }
            ],
            "isSelect": null,
            "sort": 45,
            "isDeleted": false,
            "redirect": "/person/index",
            "hidden": false,
            "alwaysShow": true,
            "meta": "{\"title\":\"个人中心\",\"icon\":\"el-icon-user-solid\"}",
            "createTime": "2023-02-23 21:26:08",
            "modifyTime": "2023-02-23 21:26:08"
        },
        {
            "id": "1628748040587182082",
            "pid": "0",
            "name": "test",
            "title": "测试",
            "type": 1,
            "permissionValue": null,
            "path": "/test",
            "component": null,
            "icon": "el-icon-setting",
            "status": 1,
            "level": 0,
            "children": [
                {
                    "id": "1628748040620736513",
                    "pid": "1628748040587182082",
                    "name": "testIndex",
                    "title": "个人设置",
                    "type": 1,
                    "permissionValue": null,
                    "path": "index",
                    "component": "@/views/test/index",
                    "icon": "el-icon-setting",
                    "status": 1,
                    "level": 1,
                    "children": [
                        {
                            "id": "1628748040675262466",
                            "pid": "1628748040620736513",
                            "name": "",
                            "title": "查看",
                            "type": 2,
                            "permissionValue": "testIndex.list",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 10,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040717205505",
                            "pid": "1628748040620736513",
                            "name": "",
                            "title": "新增",
                            "type": 2,
                            "permissionValue": "testIndex.add",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 9,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040767537153",
                            "pid": "1628748040620736513",
                            "name": "",
                            "title": "编辑",
                            "type": 2,
                            "permissionValue": "testIndex.edit",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 8,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        },
                        {
                            "id": "1628748040805285890",
                            "pid": "1628748040620736513",
                            "name": "",
                            "title": "删除",
                            "type": 2,
                            "permissionValue": "testIndex.remove",
                            "path": null,
                            "component": null,
                            "icon": null,
                            "status": 1,
                            "level": 2,
                            "children": [],
                            "isSelect": null,
                            "sort": 7,
                            "isDeleted": false,
                            "redirect": null,
                            "hidden": false,
                            "alwaysShow": false,
                            "meta": null,
                            "createTime": "2023-02-23 21:26:08",
                            "modifyTime": "2023-02-23 21:26:08"
                        }
                    ],
                    "isSelect": null,
                    "sort": 50,
                    "isDeleted": false,
                    "redirect": null,
                    "hidden": false,
                    "alwaysShow": false,
                    "meta": "{\"title\":\"个人设置\",\"icon\":\"el-icon-setting\",\"componentUrl\":\"@/views/test/index\"}",
                    "createTime": "2023-02-23 21:26:08",
                    "modifyTime": "2023-02-23 21:26:08"
                }
            ],
            "isSelect": null,
            "sort": 44,
            "isDeleted": false,
            "redirect": "/test/index",
            "hidden": false,
            "alwaysShow": true,
            "meta": "{\"title\":\"测试\",\"icon\":\"el-icon-setting\"}",
            "createTime": "2023-02-23 21:26:08",
            "modifyTime": "2023-02-23 21:26:08"
        }
    ]
    async function postlist() {
        // console.log(list);
        setConfirmLoading(true);
        let res = await rashMenulist(list)
        if (res.code === 20000) {

            setOpen(false);
            setConfirmLoading(false);
            setRest(0)
            changetyp()
            rashlist()
            message.success('初始化成功')

        }
    }
    const handleOk = () => {
        postlist()

    };
    const handleCancel = () => {
        setTimeout(() => {
            setRest(0)
            changetyp()
        })
        setOpen(false);
    };
    return (
        <div>
            <Modal
                title="初始化的菜单列表"
                cancelText='取消'
                okText="确定"
                open={open}
                onOk={handleOk}
                confirmLoading={confirmLoading}
                onCancel={handleCancel}
            >
                <Alert message="请谨慎操作! 初始化菜单会覆盖之前记录!" type="warning" showIcon />
                <div className={styles.treelist} >
                    <Tree
                        switcherIcon={<DownOutlined />}
                        treeData={result}
                    />
                </div>
            </Modal>
        </div>
    )
}
